# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=links
pkgver=2.30
pkgrel=0
pkgdesc="Web browser running in both graphics and text mode"
url="http://links.twibright.com/"
arch="all"
license="GPL-2.0-or-later WITH OpenSSL-Exception"
makedepends="
	bzip2-dev
	libevent-dev
	openssl-dev
	zlib-dev
	zstd-dev
	"
subpackages="$pkgname-doc"
source="http://links.twibright.com/download/links-$pkgver.tar.bz2"
options="!check"  # No test suite.

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-javascript \
		--disable-graphics \
		--without-x \
		--disable-nls
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
265f71fcd80a160b48b9572c4ca326c26a45032fbca69be3f3b6e60af136152daa22884e097ef719db950607425eb0e8c7f8714047f2476000301fd2b76c3806  links-2.30.tar.bz2
"
